package com.hrms.controller;



import com.hrms.pojo.SalaryInfo;
import com.hrms.service.AttenManageService;
import com.hrms.service.SalaryInfoService;
import com.hrms.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LK
 * @since 2021-10-19
 */
@RestController
@RequestMapping("/salaryInfo")
public class SalaryInfoController {
	@Autowired
	SalaryInfoService salaryInfoService;
	@Autowired
	AttenManageService attenManageService;



	@RequestMapping("/List")
	public HashMap<String, Object> list(SalaryInfo a) {
		return salaryInfoService.select(a);
	}
	//修改
	@RequestMapping("/update")
	public HashMap<String,Object>  update(SalaryInfo a){
		return salaryInfoService.update(a);
	}
	//新增
	@RequestMapping("/add")
	public HashMap<String,Object> add( SalaryInfo a){

		return salaryInfoService.add(a);
	}

	//删除
	@RequestMapping("/del")
	public HashMap<String,Object> del(Integer id){
		return salaryInfoService.del(id);
	}
}

